package cn.ncu.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:Martina
 * @create:2020-07-15 15:39
 * @description:
 */
public interface BaseDao<T,K> {
    void save(T t);
    void update(T t);
    void delete(K k);
    T findAll(K k);
    List<T> findByPage(@Param("start") Integer start, @Param("rows") Integer rows);
    Integer findTotals();
}
